DeleteScalingConfiguration
Description
call DeleteScalingConfiguration to delete a specified scaling configuration.
Request Method
POST
Request Path
/apsara/route/Ess/DeleteScalingConfiguration
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ScalingConfigurationId | BODY | string | Yes | No sample value for this parameter. | scaling configuration ID. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
the specified scaling configuration does not exist under this user account. | invalidscalingconfigurationid.notfound | The specified scaling configuration does not exist. | 404 |
The specified scaling configuration and the associated ECS instance have not been deleted. | instanceinuse | You cannot delete a scaling configuration or scaling group while there is an instance associated with it. | 400 |
the specified scaling configuration needs to be in the Inactive state. | incorrectscalingconfigurationlifecyclestate | The current lifecycle state of specified scaling configuration does not support this action. | 400 |
Example
Successful Response example
{
"the specified scaling configuration does not exist under this user account.":"The specified scaling configuration does not exist.",
"The specified scaling configuration and the associated ECS instance have not been deleted.":"You cannot delete a scaling configuration or scaling group while there is an instance associated with it.",
"the specified scaling configuration needs to be in the Inactive state.":"The current lifecycle state of specified scaling configuration does not support this action."
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}